Reproducible builds requires that the build time stamp is not
authorPaul Gevers <elbrus@debian.org>
Sat, 19 Feb 2022 09:42:00 +0000 (09:42 +0000)
committerAbou Al Montacir <abou.almontacir@sfr.fr>
Sat, 19 Feb 2022 09:42:00 +0000 (09:42 +0000)
commit4838737e9c27fdcec3bc6b594f3fab9a44acbd52
treee97a97236d232e374bba36d899f6bbad9b1a9e07
parent266eb28fc2cd9e11a90a8397abedc07cb80fb6f9
Reproducible builds requires that the build time stamp is not

recorded in binaries. In FPC they are fuild in via the $INCLUDE %DATE%
directive which calls getdatestr in globals.pas. To allow reproducible builds
we should honor the SOURCE_DATE_EPOCH environment variable. To not depend on
the dateutil unit, we include the required code from that package here.

Gbp-Pq: Name honor_SOURCE_DATE_EPOCH_in_date.patch
fpcsrc/compiler/globals.pas